﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
		CodeFile="InputAgenti.aspx.cs" Inherits="Contents_InputAgenti" EnableEventValidation="false" %>

<%@ Register Src="../Controls/myAnnunciAuto.ascx" TagName="myAnnunciAuto" TagPrefix="uc1" %>
<%@ Register Src="../Controls/myAnnuncioSql.ascx" TagName="myAnnuncioSql" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
		<asp:UpdatePanel ID="UpdatePanel1" runat="server">
				<ContentTemplate>
						<asp:HiddenField ID="myIdU" runat="server" />
						<ajax:TabContainer ID="tabContainer1" runat="server" ActiveTabIndex="0" Height="1500px"
								ScrollBars="Auto">
								<ajax:TabPanel ID="TabPanel1" runat="server" HeaderText="Interscambio" ScrollBars="Vertical">
										<HeaderTemplate>
												Gestisci i tuoi Agenti / Manage your Agents
										</HeaderTemplate>
										<ContentTemplate>
	
																<table cellspacing="6px" style="background: url(img/sfondi/barraSfumataBlu.png) repeat-x;">
																		<tr>
																				<td valign="top">
																						Marche :<br />
																						<asp:DropDownList ID="MarcheDrop" runat="server" DataTextField="Marca" DataValueField="ID">
																						</asp:DropDownList>
																				</td>
																				<td valign="top">
																						Possesso :<br />
																						<asp:DropDownList ID="PossessiDrop" runat="server" DataTextField="Possesso" DataValueField="ID">
																						</asp:DropDownList>
																				</td>
																				<td>
																						<br />
																						<asp:CheckBox ID="AbilitatoCheckBox" runat="server" Text="Abilitato" />
																				</td>
																				<td valign="top">
																						<br />
																						<asp:ImageButton ID="ShowButton" runat="server" OnClick="ShowButton_Click" Style="width: 20px;
																								height: 20px;" ImageUrl="~/Img/select.jpg" ToolTip="Cerca/Find" />
																				</td>
																				<td valign="top">
																						&nbsp;
																				</td>
																				<td valign="top">
																						<br />
																						<asp:ImageButton ID="NewButton" runat="server" ImageUrl="~/Img/addNEW.jpg" OnClick="NewButton_Click"
																								ToolTip="Nuovo/New" />
																				</td>
																		</tr>
																</table>										
												
												<asp:GridView ID="GridViewAnnunci" runat="server" DataKeyNames="ID" CellSpacing="1"
														BackColor="White" GridLines="None" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px"
														CellPadding="3" OnSelectedIndexChanging="GridViewAnnunci_SelectedIndexChanging"
														OnSelectedIndexChanged="GridViewAnnunci_SelectedIndexChanged" AllowPaging="True" 
																		AllowSorting="True" onsorted="GridViewAnnunci_Sorted" 
																		onsorting="GridViewAnnunci_Sorting">
														<AlternatingRowStyle BorderColor="Blue" />
														<Columns>
																<asp:CommandField ButtonType="Image" SelectImageUrl="~/Img/select.jpg" ShowSelectButton="True" />
														</Columns>
														<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
														<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
														<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
														<RowStyle BackColor="#DEDFDE" ForeColor="Black" Wrap="False" />
														<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
												</asp:GridView>
										</ContentTemplate>
								</ajax:TabPanel>
								<ajax:TabPanel ID="TabPanel2" runat="server" HeaderText="Interscambio" ScrollBars="Vertical">
										<HeaderTemplate>
												Dati / Data
										</HeaderTemplate>
										<ContentTemplate>
												<uc2:myAnnuncioSql ID="myAnnuncioSql1" runat="server" />
										</ContentTemplate>
								</ajax:TabPanel>
						</ajax:TabContainer>
				</ContentTemplate>
		</asp:UpdatePanel>
		<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
				DynamicLayout="false">
				<ProgressTemplate>
						<div style="background-color: Gray;">
								In aggiornamento / Update is in progress...
						</div>
				</ProgressTemplate>
		</asp:UpdateProgress>
		<br />

		<script type="text/javascript" language="javascript">

				//						var prm = Sys.WebForms.PageRequestManager.getInstance();
				//						prm.add_initializeRequest(initializeRequest);

				//						function initializeRequest(sender, args) {
				//								args.set_cancel(!confirm('Confermi ? '));
				//						}
		</script>

</asp:Content>
